package service

import "go-micro.dev/v4/client"

var only *SvcFactory

type SvcFactory struct {
	UserService *UserService
}

func newSvcFactory() *SvcFactory {
	only = new(SvcFactory)
	return only
}

func Init(cli client.Client) {
	obj := newSvcFactory()
	obj.UserService = newUserService(cli)
}

func Only() *SvcFactory {
	return only
}
